package com.bw.kotlinim.contract.login

import com.bw.kotlinim.contract.BasePresenter

interface LoginContract {
    //实现功能
    interface Presenter:BasePresenter{
        fun login(userName:String,password:String)
    }
    //UI反馈
    interface View{
        fun onUserNameError()
        fun onPasswordError()
        fun onStartLogin()//为了触发弹出登录进度条
        fun onLoggedInSuccess()
        fun onLoggedInFailed(message:String)
    }
}